Alex Williamson [Fri, 12 Oct 2007 20:30:30 +0000 (14:30 -0600)]
[IA64] vti domain save/restore: add unwind directive to break fault handler
add unwind directive to fast_hypercall path.
While fast_hypercall path calls function (hypercall, do_softirq()) and
might be blocked, it doesn't have unwind infomation.
So stack unwinding fails. Add necessary unwind directive.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Fri, 12 Oct 2007 20:27:51 +0000 (14:27 -0600)]
[IA64] vti domain save/restore: fix stack unwinder
fix stack unwinder.
- fix find_save_locs() and unw_unwind().
instruction pointer check should be suite for xen.
- fix unw_unwind_to_user()
VTi domain fault handler doesn't always updatevcpu->on_stack so that
the pUStk check fails. Add more checking to stop winding.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Fri, 12 Oct 2007 20:23:38 +0000 (14:23 -0600)]
[IA64] vti domain save/restore: add show_stack() prototype
add show_stack() prototype which will be used later.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Fri, 12 Oct 2007 20:17:00 +0000 (14:17 -0600)]
[IA64] hvm domain builder clean up. use xc_vcpu_setcontext().
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Fri, 12 Oct 2007 20:14:13 +0000 (14:14 -0600)]
[IA64] vmx_setup_platform() may fail. make it return error value.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Fri, 12 Oct 2007 20:11:57 +0000 (14:11 -0600)]
[IA64] Fix vmx_emul_mov_from_dbr/ibr()
dbr[] and ibr[] are confused.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Fri, 12 Oct 2007 20:10:02 +0000 (14:10 -0600)]
[IA64] Clean up: vmx_vcpu_set_rr()
vmx_vcpu_set_rr(): remove the obsolete variable, oldrr.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Fri, 12 Oct 2007 20:08:13 +0000 (14:08 -0600)]
[IA64] Remove dead code
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Fri, 12 Oct 2007 19:56:42 +0000 (13:56 -0600)]
[IA64] Avoid set cr.ivt when context switch if possible
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Fri, 12 Oct 2007 19:52:30 +0000 (13:52 -0600)]
[IA64] Minor clean up of sync_vcpu_execstate()
vmx_save_state() is called by context_switch()
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Fri, 12 Oct 2007 19:50:09 +0000 (13:50 -0600)]
[IA64] Remove duplicate xc_get/set_hvm_param() definitions
Remove duplicated xc_get/set_hvm_param definition in xc_ia64_hvm_build.c
They are also defined in xc_domain.c.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Keir Fraser [Fri, 12 Oct 2007 09:19:55 +0000 (10:19 +0100)]
svm: last branch recording MSR emulation
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 11 Oct 2007 18:23:40 +0000 (19:23 +0100)]
x86: Fix time-scale calculation to avoid #DE fault.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 11 Oct 2007 18:18:12 +0000 (19:18 +0100)]
x86: Fix emulation of DIV instruction. Never actually used currently,
but this will avoid a #DE in Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 11 Oct 2007 12:53:50 +0000 (13:53 +0100)]
hvm: Fix CR0.TS handling.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 11 Oct 2007 12:32:41 +0000 (13:32 +0100)]
Clean up SMP macros and always have IRQs disabled when executing an
'smp_call_function' callback function.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 11 Oct 2007 12:27:38 +0000 (13:27 +0100)]
x86: disable AMD's C1E mode.
In C1E the APIC timer stops ticking, which Xen cannot tolerate.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Keir Fraser [Thu, 11 Oct 2007 11:11:54 +0000 (12:11 +0100)]
x86: AMD Fam10/11 adjustments
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Sync up affected files with 2.6.23-rc9.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 11 Oct 2007 09:21:55 +0000 (10:21 +0100)]
Add local header files to HDRS.
Otherwise, changes to such headers do not trigger
re-compiles. (Powerpc already had this.)
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Keir Fraser [Thu, 11 Oct 2007 09:21:08 +0000 (10:21 +0100)]
More static shadow functions.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Keir Fraser [Thu, 11 Oct 2007 09:20:45 +0000 (10:20 +0100)]
Shadow code printing adjustments.
Messages prior to BUG() should always be displayed, not just when
DEBUG_TRACE_DUMP is defined (which by default it isn't). Convert them
from SHADOW_PRINTK() to SHADOW_ERROR().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Keir Fraser [Thu, 11 Oct 2007 09:02:07 +0000 (10:02 +0100)]
Do not include compile.h directly -- use version.h indirection functions.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 11 Oct 2007 08:41:16 +0000 (09:41 +0100)]
[vTPM] Add set/get_other_config to Xen-API.
Add get_- and set_other_config methods to the vTPM class. Write the
parameters into the xenstore while the domain is running prefixing it
with 'oc_'. Also I add the methods to the C library as well as the
documentation.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Thu, 11 Oct 2007 07:14:11 +0000 (08:14 +0100)]
hvm: Fix migration of 64-bit guests by permitting EFER_LMA to be set
in restored VCPU context.
Signed-off-by: David Lively <dlively@virtualiron.com>
Signed-off-by: Robert Phillips <rphillips@virtualiron.com>
Keir Fraser [Wed, 10 Oct 2007 12:17:42 +0000 (13:17 +0100)]
ia64: Fix help message of xenitp.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Keir Fraser [Wed, 10 Oct 2007 10:26:23 +0000 (11:26 +0100)]
Fix printing month in printk prefix (1-12 rather than 0-11).
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
Keir Fraser [Tue, 9 Oct 2007 15:42:42 +0000 (16:42 +0100)]
vt-d: Clean up iommu code.
Signed-off-by: Weidong Han <weidong.han@intel.com>
Keir Fraser [Tue, 9 Oct 2007 15:06:50 +0000 (16:06 +0100)]
MiniOS: no-stack-protector added to the cflags if needed,
and the default domain config file fixed.
From: Grzegorz Milos <gm281@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 9 Oct 2007 15:05:43 +0000 (16:05 +0100)]
[IA64] Update for cset 16067:
9f9f9b68cd08
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Keir Fraser [Mon, 8 Oct 2007 12:43:17 +0000 (13:43 +0100)]
xend, xsm: Lock domain access while modifying policy.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Mon, 8 Oct 2007 09:57:32 +0000 (10:57 +0100)]
xend: Remove unused xoptions.netback_type.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 8 Oct 2007 09:55:50 +0000 (10:55 +0100)]
xenconsoled: portability fixes:
- Use openpty(), which does the same as the sequence
of open(), grantpt(), unlockpt(), ptsname(), tcgetattr()
simplifies code
- Check return code from tcsetattr()
- sprintf() -> snprintf()
- OpenBSD lacks POSIX grantpt() and unlockpt()
requires use of openpty()
- Solaris lacks POSIX openpty() via feedback from SUN (John Levon)
implement openpty() for Solaris, tested and ok'd by SUN (John
Levon)
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Mon, 8 Oct 2007 09:47:58 +0000 (10:47 +0100)]
Remove tabs from python scripts xenmon and xentrace_format.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Keir Fraser [Mon, 8 Oct 2007 09:46:45 +0000 (10:46 +0100)]
Fix domU reboot failure when using "pci=" option
The failure only happens on the second or later auto reboot.
See the following thread for a long discussion on this issue where
most problems were fixed.
http://lists.xensource.com/archives/html/xen-users/2006-05/msg00154.html
Signed-off-by: Charles Arnold <carnold@novell.com>
Tim Deegan [Mon, 8 Oct 2007 08:40:49 +0000 (09:40 +0100)]
[XEN] Shadow: fix locking in error path.
Signed-off-by: TIm Deegan <Tim.Deegan@xensource.com>
Keir Fraser [Fri, 5 Oct 2007 13:39:40 +0000 (14:39 +0100)]
Initialize last_error in libxc.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Keir Fraser [Fri, 5 Oct 2007 13:11:36 +0000 (14:11 +0100)]
xenstore: sprintf->snprintf, and fix for OpenBSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Fri, 5 Oct 2007 09:38:52 +0000 (10:38 +0100)]
entrace: Remove assertions to avoid system crashes on debug build xen.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
Keir Fraser [Fri, 5 Oct 2007 09:31:25 +0000 (10:31 +0100)]
[NW scripts] Choose alternative interface if NFSroot is used.
Allow the network bridging setup script to choose an alternative
network interface if it is determined that the root is mounted using
NFS, which is assumed to be done over the NIC serving the default
gw. In this case the prefix of the device is used to find other
devices, i.e., if eth0 is the default device an alternative device may
be an other ones starting with 'eth'.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Thu, 4 Oct 2007 16:58:16 +0000 (17:58 +0100)]
xen: Changes to printk handling:
1. Command-line option 'console_timestamps' adds a timestamp prefix
to each line of Xen console output (x86 only, after CMOS has been
interrogated).
2. Clean up prefix handling and vanity banner info.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 13:21:11 +0000 (14:21 +0100)]
Revert 16065:
671dcd08e806 and try again to fix the issue.
Changing LINUX_VER causes us to clone the wrong repository so instead
use the kernel's "kernelrelease" target to figure out the correct
Linux version.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 12:52:51 +0000 (13:52 +0100)]
xsview: a xenstore viewer written in PyQT.
From: Mark Williamson <mark.williamson@cl.cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 09:31:44 +0000 (10:31 +0100)]
Clean up grant-table code after recent changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 09:26:21 +0000 (10:26 +0100)]
Allow iomem permissions to be set up through grant table ops.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
Keir Fraser [Thu, 4 Oct 2007 09:25:35 +0000 (10:25 +0100)]
Fix TLB flush on grant unmap.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
Keir Fraser [Thu, 4 Oct 2007 09:03:04 +0000 (10:03 +0100)]
Fix kernel version after linux-2.6.18-xen.hg 219:
3e8752eb69dc which
applied 2.6.18.8,
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 08:57:17 +0000 (09:57 +0100)]
hvm: Fix the flush-all-tlbs hypercall.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 08:40:31 +0000 (09:40 +0100)]
This patch ensures xen vmm has exclusive access of vt-d hw by zapping
vt-d "DMAR" ACPI table signature after xen has finished using it.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Keir Fraser [Thu, 4 Oct 2007 08:39:40 +0000 (09:39 +0100)]
README: Remove incorrect information about PAE builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 08:38:40 +0000 (09:38 +0100)]
xenbaked: Fix for new trace format.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
Keir Fraser [Thu, 4 Oct 2007 08:37:33 +0000 (09:37 +0100)]
[hotplug scripts] Unlock the 'block' lock before bailing.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Thu, 4 Oct 2007 08:36:18 +0000 (09:36 +0100)]
svm: Enable nested paging only on x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 3 Oct 2007 15:33:23 +0000 (16:33 +0100)]
hvm: More changes to reduce size of domain structure.
It is now smaller than a page (4kB) on x86/32 and x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 3 Oct 2007 14:47:47 +0000 (15:47 +0100)]
hvm: Do not include full hvm_hw_hpet in 'struct domain'. It is very
large due to the number of (unused) reserved registers. This
unnecessarily blots the size of the domain structure.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 3 Oct 2007 13:56:31 +0000 (14:56 +0100)]
xm: Add accel option to xm network-attach.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
Keir Fraser [Wed, 3 Oct 2007 13:41:28 +0000 (14:41 +0100)]
svm: Actually remove disabling of CR4-read-intercept when using NPT.
Should have been in the previosu changeset. Oops.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 3 Oct 2007 13:33:57 +0000 (14:33 +0100)]
svm: Can only avoid CR3 reads when NPT is enabled.
CR0 and CR4 reads must still be intercepted.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 3 Oct 2007 13:07:30 +0000 (14:07 +0100)]
Merge with ia64 tree.
Keir Fraser [Wed, 3 Oct 2007 13:06:06 +0000 (14:06 +0100)]
xend: Check access to the privcmd interface before doing the call to
fetch the currently enforced policy. Assign 'INACCESSIBLE' to the
policy if it cannot be retrieved due to the user not being
privileged.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Wed, 3 Oct 2007 13:04:51 +0000 (14:04 +0100)]
Extend 'xm dumppolicy' to support Xen-API
I am extending 'xm dumppolicy' to be used via the Xen-API. For this
there are two new functions in the ACM policy class:
- get the currently enforced policy including statistical data from
the hypervisor
- get the ACM 'ssidref' of a Domain. Since this may be a ACM-specific
variable or type (int) I put it into the ACM class.
I extended the Xen-API documentation with the two new functions.
Signed-off-by: Stefan Berger <Stefanb@us.ibm.com>
Alex Williamson [Tue, 2 Oct 2007 17:31:55 +0000 (11:31 -0600)]
merge with xen-unstable.hg (staging)
Alex Williamson [Tue, 2 Oct 2007 16:07:35 +0000 (10:07 -0600)]
[IA64] micro-optimize and comments in vmx_ivt.S
Comments added + micro-optimizations.
In PHY_D mode, alt tlb misses can call vmx_hpw_miss.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Tue, 2 Oct 2007 16:07:18 +0000 (17:07 +0100)]
x86/64: Fix build.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alex Williamson [Tue, 2 Oct 2007 16:04:56 +0000 (10:04 -0600)]
[IA64] cleanup in vmx headers
Reduce size of arch_vmx_struct (flags is now 1 byte).
Remove unused macro.
Add VMX_MMU_MODE macro.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Tue, 2 Oct 2007 15:59:27 +0000 (09:59 -0600)]
[IA64] Cleanup: remove useless #ifndef and indentation.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Tue, 2 Oct 2007 15:59:07 +0000 (16:59 +0100)]
vtd: Dynamically allocate IRQ-tracking structures, only for those
domains that actually have PCI-passthru devices. Greatly reduces size
of 'struct domain'.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alex Williamson [Tue, 2 Oct 2007 15:58:09 +0000 (09:58 -0600)]
[IA64] Remove warnings.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Tue, 2 Oct 2007 15:31:45 +0000 (09:31 -0600)]
[IA64] xenitp improvements
Remove all the casts by using char * instead of unsigned char *.
The go command now accept a number.
The disass command can now accept a range.
Number of TRs is not hard-coded.
'-' (minus) can now be used in expressions.
'$iip' and '$b0' can be used in expressions.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Tue, 2 Oct 2007 15:28:58 +0000 (16:28 +0100)]
x86/32: Re-factor mapcache data structure into per-domain and per-vcpu
components. Greatly reduces size of 'struct domain'.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alex Williamson [Tue, 2 Oct 2007 15:20:41 +0000 (09:20 -0600)]
[IA64] xenitp: Display symbolic names of cr.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Tue, 2 Oct 2007 15:18:38 +0000 (09:18 -0600)]
[IA64] Fix + more cr regs for vcpu_get_context
Do not hard code number of TRs in vcpucontext.
Correctly fill rr7 and add more cr registers for get_vcpu_context.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Tue, 2 Oct 2007 12:19:25 +0000 (13:19 +0100)]
xentop: Flush batch output on SIGTERM or SIGINT.
Signed-off-by: INAKOSHI Hiroya <inakoshi.hiroya@jp.fujitsu.com>
Keir Fraser [Tue, 2 Oct 2007 09:53:14 +0000 (10:53 +0100)]
hvm svm: Fix #MC intercept routine for AMD SVM.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Tue, 2 Oct 2007 09:46:23 +0000 (10:46 +0100)]
Add XENPF_getidletime.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 2 Oct 2007 09:45:53 +0000 (10:45 +0100)]
Clean up and fix XEN_SYSCTL_getcpuinfo error path.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 2 Oct 2007 09:01:10 +0000 (10:01 +0100)]
xend: Fix name/uuid uniqueness checks.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Keir Fraser [Tue, 2 Oct 2007 08:59:39 +0000 (09:59 +0100)]
Revert 15642:
207582c8d88b532783da5c6f5839336187556f0a.
This patch is now bogus since 15168:
a717cb2fac90 is reverted
by 15973:
8817a53c030f.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Keir Fraser [Tue, 2 Oct 2007 08:56:53 +0000 (09:56 +0100)]
Fix external-device-migrate infinite loop.
For some (yet) unknown reason extern-device-migrate is called
twice, once with a missing domname argument.
The following invocation loops forever:
external-device-migrate -domname
because "shift 2" never shifts ($# < 2) and $# is always 1.
From: Pascal Bouchareine <pascal@gandi.net>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 2 Oct 2007 08:41:10 +0000 (09:41 +0100)]
xenctx: Print EFLAGS for i386 and x86/64.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 2 Oct 2007 08:35:37 +0000 (09:35 +0100)]
hvm: Fix HVMOP_flush_tlbs to flush paging-mode state.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 2 Oct 2007 08:31:40 +0000 (09:31 +0100)]
xentrace: Fix xentrace_format for new file format.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
Keir Fraser [Tue, 2 Oct 2007 08:30:36 +0000 (09:30 +0100)]
xentrace: Fix man page (remove xentrace_cpuinfo(1)).
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
Keir Fraser [Tue, 2 Oct 2007 08:29:23 +0000 (09:29 +0100)]
Fix ioemu compile on Solaris
Solaris doesn't have RLIMIT_RSS at least; don't try to set rlimits.
Signed-off-by: John Levon <john.levon@sun.com>
Keir Fraser [Tue, 2 Oct 2007 08:29:00 +0000 (09:29 +0100)]
Fix non-portabilities in libflask.
Signed-off-by: John Levon <john.levon@sun.com>
Keir Fraser [Tue, 2 Oct 2007 08:27:22 +0000 (09:27 +0100)]
xend: Fix refactoring done in CS 15938 in security.py.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Tue, 2 Oct 2007 08:26:18 +0000 (09:26 +0100)]
xm-test: Fix bugzilla #1051.
This is a patch to fix xm-test's network errors
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1051
From: Lukasz Szymanski <Lukasz.Szymanski@unisys.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Alex Williamson [Mon, 1 Oct 2007 19:59:37 +0000 (13:59 -0600)]
merge with xen-unstable.hg
Alex Williamson [Mon, 1 Oct 2007 15:59:24 +0000 (09:59 -0600)]
[IA64] xenitp: correctly size vcpu_ctx array
vcpu_ctx[] array size should be MAX_VIRT_CPUS instead of 1.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Mon, 1 Oct 2007 15:57:50 +0000 (09:57 -0600)]
[IA64] Fix wrong insertion of TLB entry in region 0
On PV domain with metaphysical mode, emulation of itc.d in region 0
doesn't work well and inserts an wrong TC entry.
Because set_one_rr() doesn't set the machine region register.
i.e. metaphyisical_rr0 is used instead of guest's rr[0].
This bug causes Dom0/U crash when an application uses region 0.
Actually I met the crash when I was building open GFW (java uses
region 0).
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Alex Williamson [Mon, 1 Oct 2007 15:53:48 +0000 (09:53 -0600)]
[IA64] xenctx: fix rse arithmetic
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Mon, 1 Oct 2007 15:52:14 +0000 (09:52 -0600)]
[IA64] Replace mode_flags by mmu_mode
Replace mode_flags by mmu_mode and put it into arch_vmx structure.
Cleanup in vmx_phy_mode.c to prepare for half-physical mode (dt=0,it=1)
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Mon, 1 Oct 2007 14:38:58 +0000 (15:38 +0100)]
x86: Rename math_state_restore() to more logical
do_device_not_available(), following naming convection for all other C
exception handlers.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 1 Oct 2007 14:28:18 +0000 (15:28 +0100)]
x86: Clean up arch_set_info_guest() by having HVM VCPUs bail early.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 1 Oct 2007 14:12:05 +0000 (15:12 +0100)]
hvm: Avoid need for ugly setcpucontext() in HVM domain builder by
pre-setting the vcpu0 to runnable inside Xen, and have the builder
insert a JMP instruction to reach the hvmloader entry point from
address 0x0.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 1 Oct 2007 13:11:15 +0000 (14:11 +0100)]
hvm: Re-jig event delivery logic to better integrate TPR management.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 1 Oct 2007 12:18:19 +0000 (13:18 +0100)]
libxenctrl: Fix lock_pages()/unlock_pages() region-size calculation.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Keir Fraser [Mon, 1 Oct 2007 08:32:25 +0000 (09:32 +0100)]
x86: Fix time going backwards on CPU frequency change.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 1 Oct 2007 08:32:04 +0000 (09:32 +0100)]
x86: Fix debug build.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 1 Oct 2007 05:39:00 +0000 (06:39 +0100)]
xm: Print xend config via 'xm info --config'.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Keir Fraser [Mon, 1 Oct 2007 05:36:25 +0000 (06:36 +0100)]
xsm:acm: Fix nul dereference bug (take 2).
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>